import request from '@/utils/request'

// 查询鱼流转记录列表
export function listFishrecord(query) {
  return request({
    url: '/pond/fishrecord/list',
    method: 'get',
    params: query
  })
}

// 查询鱼流转记录详细
export function getFishrecord(id) {
  return request({
    url: '/pond/fishrecord/' + id,
    method: 'get'
  })
}

// 新增鱼流转记录
export function addFishrecord(data) {
  return request({
    url: '/pond/fishrecord',
    method: 'post',
    data: data
  })
}

// 修改鱼流转记录
export function updateFishrecord(data) {
  return request({
    url: '/pond/fishrecord',
    method: 'put',
    data: data
  })
}

// 删除鱼流转记录
export function delFishrecord(id) {
  return request({
    url: '/pond/fishrecord/' + id,
    method: 'delete'
  })
}
